package com.hex.liyue.usermodule.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.hex.liyue.commonmodule.bean.BaseBean;

import java.util.List;

/**
 * Created by WJ on 2016/6/21.
 */
public class AddressResultBean extends BaseBean  {
    public List<DataBean> data;

    public static class DataBean implements Parcelable {
        public String delivery_id;
        public String uid;
        public String username;
        public String mobile;
        public String address_detail;
        public String province_id;
        public String province_name;
        public String city_id;
        public String city_name;
        public String district_id;
        public String district_name;
        public String is_default;
        public String status;
        public String postcode;

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.delivery_id);
            dest.writeString(this.uid);
            dest.writeString(this.username);
            dest.writeString(this.mobile);
            dest.writeString(this.address_detail);
            dest.writeString(this.province_id);
            dest.writeString(this.province_name);
            dest.writeString(this.city_id);
            dest.writeString(this.city_name);
            dest.writeString(this.district_id);
            dest.writeString(this.district_name);
            dest.writeString(this.is_default);
            dest.writeString(this.status);
            dest.writeString(this.postcode);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.delivery_id = in.readString();
            this.uid = in.readString();
            this.username = in.readString();
            this.mobile = in.readString();
            this.address_detail = in.readString();
            this.province_id = in.readString();
            this.province_name = in.readString();
            this.city_id = in.readString();
            this.city_name = in.readString();
            this.district_id = in.readString();
            this.district_name = in.readString();
            this.is_default = in.readString();
            this.status = in.readString();
            this.postcode = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
